<template>
<div class="error-panel animated fadeInUp">
  <h1 class="error-code">404</h1>
  <p class="error-description">Page Not Found</p>
  <div class="error-ctrl">
    <el-button size="small" type="primary" round @click="$router.push({name: 'home'})"><i class="fa fa-home"></i>&nbsp;{{ $t('common.home') }}</el-button>
    <el-button size="small" round @click="$router.back()"><i class="fa fa-arrow-left"></i>&nbsp;{{ $t('label.operation.back') }}</el-button>
  </div>
  <p class="copyright">@{{ $t('common.author') }} {{ $t('common.all_right_reserved') }}</p>
</div>
</template>
<script>
  export default {
    data () {
      return {}
    }
  }
</script>
<style type="text/css" scoped>
  .error-panel {
    position: absolute;
    top: 45%;
    left: 50%;
    width: 250px;
    padding: 15px;
    background: #fff;
    border-radius: 4px;
    font-family: Roboto, Segoe UI, "Microsoft YaHei";
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%); 	/* IE 9 */
    -moz-transform: translate(-50%, -50%); 	/* Firefox */
    -webkit-transform: translate(-50%, -50%); /* Safari 和 Chrome */
    -o-transform: translate(-50%, -50%);
  }
  .error-panel:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2), 0 8px 0 -3px #fff, 0 9px 1px -3px rgba(0, 0, 0, 0.2), 0 16px 0 -6px #fff, 0 17px 2px -6px rgba(0, 0, 0, 0.1);
  }
  .error-panel:after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 20px;
    overflow: hidden;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 8px 0 -3px #fff, 0 9px 1px -3px rgba(0, 0, 0, 0.1), 0 16px 0 -6px #fff, 0 17px 2px -6px rgba(0, 0, 0, 0.1);
  }
  .error-panel .error-code {
    line-height: 5rem;
    margin: 0;
    font-size: 4rem;
    font-weight: 100;
    text-align: center;
  }
  .error-panel .error-description {
    text-align: center;
    margin-bottom: 30px;
  }
  .error-panel .error-ctrl {
    text-align: center;
    margin-bottom: 30px;
  }
  .error-panel .error-ctrl .el-button {
    min-width: auto !important;
    padding: 8px 12px !important;
  }
  .error-panel .copyright {
    line-height: 12px;
    text-align: center;
    color: #bfbfbf;
    font-size: 10px;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
  }
</style>
